<!DOCTYPE html>
<html lang="en">
<head>
	<!-- Copyright 2009 SyntaxMonster. All rights reserved. -->
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title><?php echo $this->functions->header_title('SyntaxCMS'); ?></title>
	<link rel="stylesheet" href="<?php echo base_url(); ?>static/_css/reset.css" />
	<link rel="stylesheet" href="<?php echo base_url(); ?>static/_css/text.css" />
	<link rel="stylesheet" href="<?php echo base_url(); ?>static/_css/style.css" />
	<link rel="stylesheet" href="<?php echo base_url(); ?>static/_css/ui.tabs.css" />
	
	<script type="text/javascript" src="<?php echo base_url(); ?>static/js/jquery.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>static/js/jquery.tools.min.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>static/js/administration_effects.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>static/js/ui/ui.core.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>static/js/ui.js"></script>
	
<?php
	$inject = $this->functions->module_header_data('css',$admin=1,$main=0);
	if ($inject == ""){
	} else {
		foreach ($inject as $item){
			echo '<style>';
			echo "\n/* ".$item['name']." */\n";
			echo $item['code'].'</style>';
		}
	}
?>

<script type="text/javascript">
	<?php
		$inject = $this->functions->module_header_data('js',$admin=1,$main=0);
		if ($inject == ""){
		} else {
			foreach ($inject as $item){
				echo "\n/* ".$item['name']." */\n";
				echo $item['code'];
			}
		}
	?>
</script>
	<?php
		define('IMAGE_PATH', ''.base_url().'static/nicedit/nicEditorIcons.gif');
		@session_start();
		$_SESSION['nicedit'] = base_url().'static/nicedit/nicEditorIcons.gif';
		//$path = str_replace( "http://","http://www.", base_url() );
		//$path .= "/static/nicedit/nicEdit.php";
		$path = "static/nicedit/nicEdit.php";
		include( $path );
		unset($_SESSION['nicedit']);
	?>
	<script type="text/javascript">
		bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
	</script>

</head>

<body>
<div id="container">

<div id="leftnav">
	<ul>
		<li><?php echo anchor('administration', 'Dashboard'); ?></li>
		<li><?php if ($this->session->userdata('group_id') == '1'){ echo anchor('administration/settings', 'Site Settings'); } ?></li>
		<?php admin() ?>
	</ul>
	<div class="bottom"></div>
</div>

<div id="main">
	<em class="logout">
		<?php if ($this->quickauth->logged_in()) { echo $this->functions->username()." - " . anchor('administration/logout', 'Logout'); } ?>
	</em>
	<h1 class="logo">
		<?php echo anchor(base_url(), 'SyntaxCMS Administration'); ?>
	</h1>
	<div class="content">
